// 封装医院设置相关发送ajax请求的函数
// 引入axios实例
import { request } from '@utils/http'
// 引入ts类型
import { IhospitalsetRes } from './model/hospitalSetTypes'
// 发送请求获取医院设置表格的数据
export function reqGetHospitalSets(
  page: number,
  limit: number,
  hosname?: string,
  hoscode?: string
) {
  return request.get<any, IhospitalsetRes>(
    `/admin/hosp/hospitalSet/${page}/${limit}`,
    {
      params: {
        hosname,
        hoscode,
      },
    }
  )
}
